package com.lzx.user.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 修改用户信息所需的参数(后台)
 * @author lzx
 * @date 2022/11/25
 * @Description
 */
@Data
public class UserVO {
    private Long id;
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^1([3-9])\\d{9}$", message = "手机号格式不正确")
    private String mobile;
    @NotEmpty(message = "昵称不能为空")
    private String nickname;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String avatar;
    private String email;
    private Integer integral;
    private String introduction;
    private Integer fansCount;
    private Integer attentionCount;
    private Integer replyCount;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
